﻿@model IList<HelloMVC.Model.Issue>
@foreach (var issue in Model)
{
    <div class="ag-issue-wrapper">
        <div class="ag-issue">
            <div class="ag-issue-inner">
                <div class="ag-issue-head">
                    <div class="ag-issue-ico-wrap">
                        <div class="ag-issue-type icon-improve"></div>
                        <div class="ag-issue-priority icon-minor"></div>
                    </div>
                    <div class="ag-issue-key-wrap ">
                        <div class="ag-issue-key">
                            <a title="View Issues...">
                                <em>TRANS</em>
                                <small>-</small>
                                <span>86</span>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="ag-issue-body">
                    <div class="ag-issue-field ag-issue-field-textarea">@issue.Summary</div>
                    <div class="ag-issue-field"><em>Version:</em><a href="#">@(issue.Version.IsEmpty()?"<a href=\"#\">unshceduled</a>":issue.Version)</a></div>
                    <div class="ag-issue-field"><em>Component:</em><a href="#">@issue.Component</a></div>
                    <div class="ag-issue-field"><em>Original Estimate:</em><span>@(issue.OriginalEstimate.HasValue?issue.OriginalEstimate.Value.ToString():"N/A")</span></div>
                    <div class="ag-issue-field"><em>Remaining:</em><span>@(issue.Remaining.HasValue?issue.Remaining.Value.ToString():"N/A")</span></div>
                    <div class="ag-issue-field"><em>Time Spent:</em><span>@(issue.TimeSpent.HasValue?issue.TimeSpent.Value.ToString():"N/A")</span></div>
                    <div class="ag-issue-field"><em>Status:</em><a href="#">@issue.Status</a></div>
                    <div class="ag-issue-field"><em>Assignee:</em><a href="#">@(issue.Assignee.IsEmpty()?"<a href=\"#\">unassignee</a>":issue.Assignee)</a></div>
                </div>
            </div>
        </div>
    </div>
}